package routers

import (
	"eat-every-day/internal/routers/api"
	"github.com/gin-gonic/gin"
)

func loadUsersRouter(engine *gin.Engine) *gin.Engine {

	engine.GET("/passport/usernameIsExist", api.UsersHandler.UsernameIsExist)
	engine.POST("/passport/regist", api.UsersHandler.Register)

	return engine
}
